<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .one{
            width: 200px;
            height: 150px;
            background-color: blue;
        }
    </style>
</head>
<body>
<div id="app">
    <div class="one" v-if="isShow"></div>
    <button @click="doShow">显示或隐藏</button>
</div>

<script src="http://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    let app = new Vue({
        el:'#app',
        data:{
            isShow:true
        },
        methods:{
            doShow(){
                this.isShow = !this.isShow;
            }
        }
    })
</script>
</body>
</html>